package com.xx.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
//@ComponentScan({"com.xx.service","com.xx.mapper"})
@ComponentScan(value = "com.xx",
                excludeFilters = @ComponentScan.Filter(
                        type = FilterType.ANNOTATION,
                        classes = Controller.class
                ))
@PropertySource({"classpath:database.properties"})
@Import({JdbcConfig.class, MyBatisConfig.class})
//@EnableAspectJAutoProxy //开启AOP
//@EnableTransactionManagement    //开启事务
public class SpringConfig {
}
